#include <iostream>
using namespace std;
int main() {
	int a, b, c, mx, mn, md;
	cin >> a >> b >> c;

	mx = a;
	if (b > mx) {
		mx = b;
	}
	if (c > mx) {
		mx = c;
	}

	mn = a;
	if (b < mn) {
		mn = b;
	}
	if (c < mn) {
		mn = c;
	}
	
    long tt=(long)a+b+c;
    md=int(tt-mx-mn);
	cout << mx << " " << md << " " << mn;
	return 0;
}
